package io.coderyeah.ymcc.feign.client;

import io.coderyeah.ymcc.domain.Login;
import io.coderyeah.ymcc.feign.fallback.LoginClientFallback;
import io.coderyeah.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author lqs
 * @date 2022/10/20 16:06
 */
@FeignClient(value = "service-uaa", fallbackFactory = LoginClientFallback.class)
public interface LoginServiceClient {
    @RequestMapping(value = "/login/save", method = RequestMethod.POST)
    JSONResult saveOrUpdate(@RequestBody Login login);
}
